package com.zb.entity;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.zb.vo.SmsSendLogVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商家短信发送记录表
 * </p>
 *
 * @author WEN
 * @since 2024-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjSmsSendLog对象", description="商家短信发送记录表")
public class ZjSmsSendLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "短信类型：1-验证类短信，2-通知类，3-推广类短信")
    private Integer type;

    @ApiModelProperty(value = "短信模板编号")
    private String smsCode;

    @ApiModelProperty(value = "模板名称")
    private String name;

    @ApiModelProperty(value = "短信发送者名称")
    private String sendUser;

    @ApiModelProperty(value = "短信接收者手机号")
    private String receiveUserPhone;

    @ApiModelProperty(value = "短信接收者名称")
    private String receiveUsername;

    @ApiModelProperty(value = "发送的短信内容")
    private String receiveContent;

    @ApiModelProperty(value = "是否发送成功：0-否，1-是")
    @TableField("is_success")
    private Boolean success;

    @ApiModelProperty(value = "发送失败原因")
    private String failtReason;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;




}
